package com.linghang.dao;

import com.linghang.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    //查询所有用户
    List<User> getUserList();
    //根据账户id查询用户信息
    User getUserByID(int id);
    User getUserByID2(Map<String,Object>map);
    //模糊查询
    List<User> getUserLike(String value);
    //插入用户
    int addUser(User user);
    int addUser2( Map<String,Object>map);
    //修改一个用户
    int updateUser(User user);
    int deleteUser(User user);
}
